package com.ruoyi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.FundingApplicationMapper;
import com.ruoyi.domain.FundingApplication;
import com.ruoyi.service.IFundingApplicationService;

/**
 * 资金申请Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-11
 */
@Service
public class FundingApplicationServiceImpl implements IFundingApplicationService 
{
    @Autowired
    private FundingApplicationMapper fundingApplicationMapper;

    /**
     * 查询资金申请
     * 
     * @param fuid 资金申请主键
     * @return 资金申请
     */
    @Override
    public FundingApplication selectFundingApplicationByFuid(Long fuid)
    {
        return fundingApplicationMapper.selectFundingApplicationByFuid(fuid);
    }

    /**
     * 查询资金申请列表
     * 
     * @param fundingApplication 资金申请
     * @return 资金申请
     */
    @Override
    public List<FundingApplication> selectFundingApplicationList(FundingApplication fundingApplication)
    {
        return fundingApplicationMapper.selectFundingApplicationList(fundingApplication);
    }

    /**
     * 新增资金申请
     * 
     * @param fundingApplication 资金申请
     * @return 结果
     */
    @Override
    public int insertFundingApplication(FundingApplication fundingApplication)
    {
        return fundingApplicationMapper.insertFundingApplication(fundingApplication);
    }

    /**
     * 修改资金申请
     * 
     * @param fundingApplication 资金申请
     * @return 结果
     */
    @Override
    public int updateFundingApplication(FundingApplication fundingApplication)
    {
        return fundingApplicationMapper.updateFundingApplication(fundingApplication);
    }

    /**
     * 批量删除资金申请
     * 
     * @param fuids 需要删除的资金申请主键
     * @return 结果
     */
    @Override
    public int deleteFundingApplicationByFuids(Long[] fuids)
    {
        return fundingApplicationMapper.deleteFundingApplicationByFuids(fuids);
    }

    /**
     * 删除资金申请信息
     * 
     * @param fuid 资金申请主键
     * @return 结果
     */
    @Override
    public int deleteFundingApplicationByFuid(Long fuid)
    {
        return fundingApplicationMapper.deleteFundingApplicationByFuid(fuid);
    }
}
